package cappuccino.couldbook.event;

import android.graphics.Bitmap;
import android.widget.ImageView;

import rx.Observer;

/**
 * Created by Administrator on 2016/9/12.
 */
public class ImageReadObserver implements Observer<Bitmap> {

    ImageView dest;
    public ImageReadObserver(ImageView dest){
        this.dest = dest;
    }

    @Override
    public void onCompleted() {

    }

    @Override
    public void onError(Throwable e) {

    }

    @Override
    public void onNext(Bitmap bitmap) {
        dest.setImageBitmap(bitmap);
    }
}
